﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMLGener.Data
{
    public class XRecursionCheck
    {
        public XMLGenerRangeElement curentElement=null;
        public Stack<XMLGenerRangeElement> rootPath = new Stack<XMLGenerRangeElement>();
        public Stack<XMLGenerRangeElement> rootPathInheritedTypes = new Stack<XMLGenerRangeElement>();
        public Stack<XMLGenerRangeElement> childsLeft = new Stack<XMLGenerRangeElement>();

        public XRecursionCheck getNextRecursionCheck()
        { 
            if (curentElement is XMLGenerElement)
            {
                XMLGenerElement elem = curentElement as XMLGenerElement;
            }else{
                foreach (XMLGenerRangeElement rangEleme in curentElement.childNodes)
                {
                    //if (rangEleme.u
                }
            }
            return null;
           // this.curentElement.

        }
    }


}
